package com.lk.api.demo;

import com.lk.api.annotation.LKAMethod;
import com.lk.api.annotation.LKAParam;
import com.lk.api.annotation.LKAType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@LKAType("测试")
@RestController
public class DemoController {

    @LKAMethod("登录")
    //@LKAParam(names={"name","pwd"},values={"用户名","密码"},requireds = {true,false})
    @LKAParam(name="name",value="用户名",required =false)
    @GetMapping("login")
    public String login(String name,String pwd){
        return name+","+pwd;
    }
}
